using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Responses.Objects;
using JoyfulHomeJourney.BackEnd.Infrastructure.Tools;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Responses
{
	public static class ReviewLikesExtend
{
		public static ResponseReviewLikesDto ToResponseDto(this ReviewLikes entity)
{			return new ResponseReviewLikesDto
			{
				createAt = entity.RlCreateAt,
				createAtStr =Tools.TimeToString(entity.RlCreateAt),
				id = entity.RlId,
				reviewId = entity.RlReviewId,
				updateAt = entity.RlUpdateAt,
				updateAtStr =Tools.TimeToString(entity.RlUpdateAt),
				user = entity.RlUser,
			};
		}
	}
}
